<?php

use yii\db\Migration;

class m170222_013059_alter_taianapply extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%taianapply}}','mode','tinyint(2)  default 0 comment \'请求所属类型（1共同体 2综合体 3管弦乐）\'');
        $this->renameTable('{{%taianapply}}','{{%apply}}');
    }

    public function safeDown()
    {
        $this->renameTable('{{%apply}}','{{%taianapply}}');
        $this->dropColumn('{{%taianapply}}','mode');
    }
}
